assert(PandaDKP, "PandaDKP not found!")

------------------------------
--      Are you local?      --
------------------------------
local PandaDKP = PandaDKP
local Comm =
{
}
PandaDKP.Comm = Comm


function Comm:Enable()
   PandaDKP:RegisterComm("PDKP", function(a,b,c,d) Comm:MessageReceived(a,b,c,d) end)
end



function Comm:MessageReceived(prefix, message, distribution, sender)
   PandaDKP.Messages:QueueMessage(sender, message)
end



function Comm:Send(channel, message, target)
   PandaDKP:SendCommMessage("PDKP", message, channel, target)
end